Pregunta de entrevista de Scott Logic

String manipulation problem - remove repeated characters from a string.