Paycom interview question

Leetcode- Take out duplicates from a string.