Function to find the maximum size palindrome such that after removing minimum size subString
function maxPalindrome ( S ) { let n = S . length ; if ( n <= 1 ) { return S ; } let pre = " " , suff = " " ;