Determine whether an integer is a palindrome. Do this without extra space.
A palindrome integer is an integer x for which reverse(x) = x where reverse(x) is x with its digit reversed. Negative numbers are not palindromic.
A = 12121Input 2:
A = 123
12121 when reversed will be 12121, and 12121 = 12121, hence a palindrome number.
123 when reversed will be 321, and 123 != 321, hence not a palindrome number
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.