Pregunta de entrevista de Amazon

Problem solving on hackerrank like leetcode