Bloomberg interview question

Print the first 9 non-duplicate characters from a string.