Ugam interview question

ques) How to remove duplicates in string