Paycom Interview Question

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