Retractable List

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 palindrome while 123 is not. 1221 is palindrome while 12211 is not.