Amazon interview question

Basically some easy debug qustions