solved isIntPalindrom