https://programmers.co.kr/learn/courses/30/lessons/12944?language=javascript
function solution(arr) {
let sum = 0;
for (let i = 0; i < arr.length; i++) {
sum += arr[i];
}
const answer = sum / arr.length;
return answer;
}