Microsoft interview question

Remove duplicates in a String.