Update isPalindrome.cpp