Pergunta de entrevista da empresa Amazon

The most difficult part was the most efficient algorithm