Amazon Interview Question

Q: debugging and logical questions