Minimum remove to make valid parentheses (Leetcode 1249)

Data Structures and Algorithms Medium Seen in real interview