[algorithm] How do I check if a number is a palindrome?