Pregunta de entrevista de Automation Anywhere

How to remove duplicates from a String?