[Python3] Simple Solution
\nclass Solution:\n    def minAddToMakeValid(self, s: str) -> int:\n        count = 0\n        \n        x = y = 0\n        \n        for i in s:\n            i
```\nclass Solution:\n    def minAddToMakeValid(self, s: str) -> int:\n        count = 0\n        \n        x = y = 0\n        \n        for i in s:\n            if(i == \'(\'):\n                x += 1\n            else:\n                x -= 1\n            \n            if(x < 0):\n                count += 1\n                x = 0\n            if(y < 0):\n                count += 1\n                y = 0\n        \n        return count + x + y\n```
['Python3']