https://programmers.co.kr/learn/courses/30/lessons/12933?language=javascript
function solution(n) {
let answer = 0;
const strArray = String(n)
.split("")
.sort()
.reverse()
.join("");
answer = Number(strArray);
return answer;
}