longest palindromic substring using a trie,got TLE