to check whether a given number is a palindrome or not