Pergunta de entrevista da empresa Apple

Basically, no advanced algorithms questions.