Minimum Remove to Make Valid Parentheses

mediumSolve on LeetCode