How to check if a number is palindrome