Revert "O(n^2) dp solution to  Longest Palindromic Substring"

This reverts commit ffa30255643fc64b25b46cf45539b4ad66a44083.