10부터 10000까지 숫자가 주어지는데
1부터 100까지 숫자가 나올때 까지 해당 수에서 각자릿수의 합을 빼는 과정을 반복함

10이면 10 - 1 - 0 = 9 이렇게


    let number = Array.from(n.toString())
        .reduce((result, current) => result - parseInt(current), n);
  
    while (number >= 100) {
        number = Array.from(number.toString())
            .reduce((result, current) => result - parseInt(current), number);
    }


이걸로 나오는 수가


    [9, 18, 27, 36, 45, 54, 63, 72, 81, 99]
외에 존재 할 수 있냐?