Checks whether a given number is palindrome. Finds the next closest palindrome number.