Given a string which may contains lowercase and uppercase chracters. The task is to remove all duplicate characters from the string and print the resultant string.
We can use a constant memory space for each of the characters and use it for tracking. The below example covers for alphanumerics. The `chars` array used will be set and used to skip duplicate entries.