Given an integer x, return true if x is a palindrome, and false otherwise.
An integer is a palindrome when it reads the same forward and backward. For example, 121 is a palindrome while 123 is not.
- An integer
x.
Input: x = 121
Output: True
Input: x = -121
Output: False (reads 121- backward)