Microsoft Interview Question

Remove duplicate elements from a string (in-place)