Pergunta de entrevista da empresa BMC Software

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