Palindrome Number
class Solution {
public:
bool isPalindrome(int x) {
if(x<0) return false;
long long y=0;
int num=0,value=x;
while(x!=0)
{
num=x%10;
x=x/10;
y=y*10+num;
}
if(y>INT_MAX) return false;
else if(value==y) return true;
else return false;
}
};