Pergunta de entrevista da empresa Amazon

Leetcode-style algorithm question. Was about medium difficulty.