LeetCode solutions explanation JavaScript. Problem #9 - Palindrome Number