Torqus interview question

Program to remove duplicate elements from a string