Amazon interview question

Nothing Difficult