Python - Super Easy - 98% Speed
We just need a For-Loop to count the number of Parenthesis open. The "append" operator goes at the center of the expression to avoid including the Outermost Pat
We just need a For-Loop to count the number of Parenthesis open. The "append" operator goes at the center of the expression to avoid including the Outermost Patentheses. Cheers,\n\n```\nclass Solution:\n    def removeOuterParentheses(self, S: str) -> str:\n        popen, result = 0, []\n        for x in S:\n            if x==\')\':\n                popen -= 1\n            if popen>0:\n                result.append(x)\n            if x==\'(\':\n                popen += 1\n        return \'\'.join(result)\n```
['Python', 'Python3']