Pergunta de entrevista da empresa SIL International

Given an array of integers, return the average for the array.