Added remove duplicate characters algorithm.

Added time complexities in comments.