OkCredit Interview Question

A simple question dealing dealing with array traversal.