Bloomberg Interview Question

find the avg of an array