Pregunta de entrevista de Apple

Nothing really difficult.