UST Interview Question

Write code to find unique characters and their occurrences in string