Pregunta de entrevista de Ortto

Asked to solve a problem