Amazon Interview Question

Mainly about for loops and arrays on debugging.