링크
function solution(arr) { const answer = arr.reduce((a, b) => a + b); return answer/arr.length; }
reduce()를 사용해서 문제를 풀었다.