Pergunta de entrevista da empresa Amazon

medium difficulty of leetcode problems