The challenge: The shortest
code, by character count, that detects and removes duplicate characters in a String. Removal includes ALL instances of the duplicated character (so if you find 3 n's, all three have
to go), and original character order needs
to be preserved.
Example Input 1:
…