Create Longest Palindromic Substring

Enumerate each position is the center of palindromic to find the longest palindromic string.