private boolean isPalindrome(int number) {
    int count = (int) (Math.log10(number) + 1);
    int res = 0;
    int tmp = number;
    for (int i = 1; i <= count; i++) {
      int dec = tmp % 10;
      res = res * 10 + dec;
      tmp = tmp / 10;
    }
    return res == number;
  }