Domanda di colloquio di Paycom

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