longest Panlindrome substring with O(n2) solution