Pergunta de entrevista da empresa IBM

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