Pergunta de entrevista da empresa Apple

Nothing really difficult.