Pregunta de entrevista de Amazon

puzzle-based logical reasoning