Paycom Interview Question

Write a program to remove duplicate from a string.