Bloomberg Interview Question

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