Pregunta de entrevista de Barclays

Delete duplicates characters in string