Pergunta de entrevista da empresa UST

Write code to find unique characters and their occurrences in string