UST interview question

Write code to find unique characters and their occurrences in string