JS very easy solution with stack
\nvar removeDuplicates = function(s) {\n    let output = [];\n    \n    for (let i = 0; i < s.length; i++) {\n        if (s[i] === output[output.length - 1]) {\
```\nvar removeDuplicates = function(s) {\n    let output = [];\n    \n    for (let i = 0; i < s.length; i++) {\n        if (s[i] === output[output.length - 1]) {\n            output.pop();\n        } else {\n            output.push(s[i]);\n        }\n    }\n    \n    return output.join(\'\');\n};\n```
['Stack', 'JavaScript']