Domanda di colloquio di RMS

Walk me through your though process to implement this logic