Paycom interview question

element count in an array, optimization