Amazon interview question

Nothing not easy