text: #include "stdlib.h"
  #include "stdbool.h"
  
  bool isPalindrome(int x) {
      int sum = 0;
      if(x<0 || (x!=0 && x%10==0)) return false;
      while(x > sum) {
          sum = (sum*10) + (x%10);
          x = (x/10);
      }
      return (x==sum) || (x==sum/10);
  }
  