Paycom interview question

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