IBM interview question

To remove duplicates from a string