Paycom Interview Question

Leetcode- Take out duplicates from a string.