Leetcode Number To String Javascript