Pregunta de entrevista de Apple

Nothing very difficult