Pergunta de entrevista da empresa Amazon

2 Complex algorithm to solve under 1 hour