Pregunta de entrevista de Amazon

standard coding challenges involving algorithm