Lumen interview question

Debug a function that averages an array of integers