Update longestPalindrome_2.cpp