Amazon Interview Question

Easy logic and syntax debugging