Pergunta de entrevista da empresa Paycom

Write a program that returns only unique characters in a string (ex. aaaabbbc becomes abc).