Pregunta de entrevista de Amazon

Coding Challenge designed by amazon