Pergunta de entrevista da empresa Automation Anywhere

How to remove duplicates from a String?