write PalindromeNumber without reverseing the number