Write a program to remove duplicates in-place from a string.
Because Python strings are immutable, represent the string as a mutable list of one-character strings. Modify the list directly, preserve the original order, and return the list containing only the unique characters.
Function: def remove_duplicates(chars):
Example: ['a', 'b', 'a', 'c'] becomes ['a', 'b', 'c']. Repeated characters are removed after their first occurrence.
def remove_duplicates(chars):