Amazon Interview Question

questions on javascript