function solution(n) { var answer = []; n=`${n}`; n=[...n] .map(a=>parseInt(a)) .reverse() return n }