Update longestPalindrome.java