Scott Logic Interview Question

String manipulation problem - remove repeated characters from a string.