LTIMindtree Interview Question

Remove duplicates from a string