Paycom interview question

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

Paycom Interview Question: Given a string through STDIN, remove duplicate characters and print the string to STDOUT | Glassdoor