Paycom interview question

Write a program to remove duplicate from a string.