OkCredit interview question

A simple question dealing dealing with array traversal.