Amazon interview question

Not sure about this question