easy implementation.

copied overflow detection from atoi.cpp
implemet isPalindrome() using integer reversing.