Stack Solution using Python || Intuition + Code || Easy-to-understand
Intuition:\n\n\nSolution:\n\n    def minRemoveToMakeValid(self, s: str) -> str:\n        string = list(s)\n        stack = []\n        for i in range(len(string
# Intuition:\n![image](https://assets.leetcode.com/users/images/1a1c38c9-f5fd-4d81-aad7-0b293d81f385_1647353741.1133804.jpeg)\n\n**Solution:**\n```\n    def minRemoveToMakeValid(self, s: str) -> str:\n        string = list(s)\n        stack = []\n        for i in range(len(string)):\n            if string[i] == \'(\':\n                stack.append((\'(\',i))\n            elif string[i] == \')\':\n                if stack:\n                    stack.pop()\n                else:\n                    string[i] = ""\n        for i in range(len(stack)):\n            string[stack[i][1]] = ""\n            \n        return "".join(string)\n```\n\n- Hope you find this helpful. Feel free to comment your approachs and intuition.\n
['Stack', 'Python']