Question d’entretien chez IBM

Coding question: How to remove duplicate characters from a character array.