Algorithm/palindrome-number