You are given a string s consisting of lowercase English characters, as well as opening and closing parentheses, ( and ).
Your task is to remove the minimum number of parentheses so that the resulting string is valid.
Return the resulting string after removing the invalid parentheses.
A parentheses string is valid if all of the following conditions are met:
Example 1:
Input: s = "nee(t(c)o)de)"
Output: "nee(t(c)ode)"Explanation: "nee(t(co)de)" , "nee(t(c)o)de" would also be accepted.
Example 2:
Input: s = "x(y)z("
Output: "x(y)z"Example 3:
Input: s = "))()(("
Output: "()"Constraints:
1 <= s.length <= 100,000.s is made up of lowercase English characters and parentheses ().