Python | Easy Solution✅
Solution 1:\n\ndef minAddToMakeValid(self, s: str) -> int:\n        while "()" in s:\n            s= s.replace("()","",1)\n        return len(s)\n\nSolution 2:\
Solution 1:\n```\ndef minAddToMakeValid(self, s: str) -> int:\n        while "()" in s:\n            s= s.replace("()","",1)\n        return len(s)\n```\nSolution 2:\n```\ndef minAddToMakeValid(self, s: str) -> int:\n        output=[]\n        for i in range(len(s)):\n            if s[i] == \'(\':\n                output.append(s[i])\n            elif s[i]==\')\':\n                output.pop() if output and output[-1]==\'(\' else output.append(s[i])\n        return len(output)\n```
['Python', 'Python3']