problem 55. add isPalindromic() and reverse() to util.ph