Longest Palindromic Substring Dynamic Programming Problems