Amazon Interview Question

Debug this code and make it run.