제시된 문제는
function solution(n) { return parseInt(String(n).split('').sort((a,b) => b - a).join('')); }
숫자를 문자열로 바꿔서 계산한 다음, 다시 정수로 반환했다