Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT S1 = " geeksforgeeks " NEW_LINE S1 = list ( S1 . rstrip ( ) ) NEW_LINE S1 = removeDuplicates ( S1 ) NEW_LINE print ( * S1 , sep = " " ) NEW_LINE S2 = " aabcca " NEW_LINE S2 = list ( S2 . rstrip ( ) ) NEW_LINE S2 = removeDuplicates ( S2 ) NEW_LINE print ( * S2 , sep = " " ) NEW_LINE DEDENT