Amazon interview question

As said above. BQ and coding question.