Palindrome Number Leetcode Javascript Problems