Amazon interview question

All questions were easy