Amazon interview question

Simple debugging question involving basics