
Check whether a given number ’n’ is a palindrome number.
Palindrome numbers are the numbers that don't change when reversed.
You don’t need to print anything. Just implement the given function.
Example:
Input: 'n' = 51415
Output: true
Explanation: On reversing, 51415 gives 51415.
The first and only line of the input contains the number 'n'.
Output format:
Return a boolean value True or False.
1032
false
1032, on being reversed, gives 2301, which is a totally different number.
121
true
121, on being reversed, gives 121, which is the same.
The expected time complexity is O(log(n)).
1 <= n <= 10^9
Time Limit: 1 sec