C++ EASY AND CLEAN CODE
Code\n\nclass Solution {\npublic:\n    string removeOuterParentheses(string s) {\n        stack<char> st;\n        string res="";\n        for(int i=0;i<s.size(
# Code\n```\nclass Solution {\npublic:\n    string removeOuterParentheses(string s) {\n        stack<char> st;\n        string res="";\n        for(int i=0;i<s.size();i++){\n            if(s[i]==\'(\' && st.empty()){\n                st.push(s[i]);\n            }\n            else if(s[i]==\'(\'){\n                st.push(s[i]);\n                res+=s[i];\n            }\n            else{\n                st.pop();\n                if(st.size()){\n                    res+=s[i];\n                }\n            }\n        }\n        return res;\n    }\n};\n```
['C++']