Paycom Interview Question

element count in an array, optimization