Easy Solution WITHOUT Stack
\nclass Solution {\npublic:\n    string removeDuplicates(string s) {\n\t\n        for(int i=1;i<s.size();i++){\n            if(i>0 && s[i]==s[i-1]){\n          
```\nclass Solution {\npublic:\n    string removeDuplicates(string s) {\n\t\n        for(int i=1;i<s.size();i++){\n            if(i>0 && s[i]==s[i-1]){\n                s.erase(i-1,2);\n                i-=2;\n            }\n        }\n\t\t\n        return s;\n    }\n};\n```
['C', 'C++']