Pregunta de entrevista de Amazon

solve meedium leetcode problem to solve