Given a string of parentheses:
s = “()(()()()()())”
Remove the minimum amount of parentheses to make the string parentheses balanced in-place.
Given a string of parentheses:
s = “()(()()()()())”
Remove the minimum amount of parentheses to make the string parentheses balanced in-place.