프로그래머스 문제
function solution(a, b) { let large = Math.max(a, b); let small = Math.min(a,b) return Array(large-small+1).fill(small).reduce((acc, cur, idx)=> acc + cur + idx, 0) }
function adder(a, b){ return (a+b)*(Math.abs(b-a)+1)/2; }