Domanda di colloquio di TOPIC

How would you implement a function to compute the average of the numbers in an array?