Short and clear solution using Stack
csharp\npublic class Solution\n{\n    public string RemoveDuplicates(string s)\n    {\n        Stack<char> st = new();\n\n        foreach (char c in s)\n       
```csharp\npublic class Solution\n{\n    public string RemoveDuplicates(string s)\n    {\n        Stack<char> st = new();\n\n        foreach (char c in s)\n        {\n            if (st.TryPeek(out char d) && d == c)\n            {\n                st.Pop();\n                continue;\n            }\n\n            st.Push(c);\n        }\n\n        return string.Concat(st.Reverse());\n    }\n}\n```
['Stack', 'C#']