Second version's LongestPalindromic.