Question d’entretien chez RMS

Walk me through your though process to implement this logic