Pergunta de entrevista da empresa Paycom

Given a string through STDIN, remove duplicate characters and print the string to STDOUT