Amazon interview question

Nothing difficult