Amazon Interview Question

Code debugging and Logical reasoning Coding