function solution(arr) {
return arr.reduce((a, v) => a + v, 0)/(arr.length)
}
function average(array){
return array.reduce((a,b) => a+b) / array.length;
}
function average(array){
var sum = 0;
for(var i = 0; i<array.length; i++){
sum += array[i];
}
return sum/array.length;
}