Python3- simple solution 99.8%
\nclass Solution:\n    def removeOuterParentheses(self, S: str) -> str:\n        res = ""\n        count = 0\n        first = 0\n        for i in range(len(S)):
```\nclass Solution:\n    def removeOuterParentheses(self, S: str) -> str:\n        res = ""\n        count = 0\n        first = 0\n        for i in range(len(S)):\n            if S[i] == "(":\n                count +=1\n            else:\n                count -= 1\n            \n            if(count == 0):\n                res +=(S[first+1:i])\n                first = i+1\n        return res\n```
['Python', 'Python3']