Amazon interview question

Debug a code on a paper