Code to find the longest palindromic substring.