ITC Infotech Interview Question

remove duplicate characters in a string