Amazon interview question

Debug this code (pair sums)