Amazon interview question

puzzles