Scott Logic interview question

String manipulation problem - remove repeated characters from a string.