Frage im Vorstellungsgespräch bei Scott Logic

String manipulation problem - remove repeated characters from a string.