Microsoft interview question

Remove duplicate elements from a string (in-place)