To find next greater palindrome of the given number