Pergunta de entrevista da empresa Amazon

Technical Interview leetcode coding question