Pergunta de entrevista da empresa Apple

Solve a Software Engineering problem