Question d’entretien chez BMC Software

Given a string, remove all the duplicate characters (not necessarily consecutive)