First version's LongestPalindromic.