Amazon Interview Question

Debug this code (pair sums)