OkCredit Interview Question

A simple question involving array traversal.