Java Easy Peasy Solution
\nclass Solution {\n    public String removeDuplicates(String s) {\n        StringBuilder sb = new StringBuilder();\n        for (char x : s.toCharArray()) {\n 
```\nclass Solution {\n    public String removeDuplicates(String s) {\n        StringBuilder sb = new StringBuilder();\n        for (char x : s.toCharArray()) {\n            if (sb.length() > 0 && sb.charAt(sb.length() - 1) == x) {\n                sb.deleteCharAt(sb.length() - 1);\n            } else {\n                sb.append(x);\n            }\n        }\n        return sb.toString();\n    }\n}\n```
['Java']