OkCredit interview question

A simple question involving array traversal.