C++ Easy understandable solution using stack
\nstring removeOuterParentheses(string s) {\n        stack<char>s1;\n        string ans="";\n        for(int i=0;i<s.size();i++)\n        {\n            if(s[i]
```\nstring removeOuterParentheses(string s) {\n        stack<char>s1;\n        string ans="";\n        for(int i=0;i<s.size();i++)\n        {\n            if(s[i]==\'(\')\n            {\n                if(s1.size()>0)\n                    ans+=\'(\';\n                s1.push(\'(\');\n            }else\n            {\n                if(s1.size()>1)\n                    ans+=\')\';\n                s1.pop();\n            }\n            \n        }\n        return ans;\n    }\n```
['Stack', 'C', 'C++']