Function to find the maximum size palindrome such that after removing minimum size substring
def maxPalindrome ( S ) : NEW_LINE INDENT n = len ( S ) NEW_LINE if ( n <= 1 ) : NEW_LINE INDENT return S NEW_LINE DEDENT pre = " " NEW_LINE suff = " " NEW_LINE DEDENT