Characters arrive one at a time. After each character, write down the first character that has appeared only once so far, or # if there is none. Return the string of those answers (one per arriving character).
For "aabc" the answers are a, #, b, b, so the result is "a#bb".
Example 1
Input:
first_non_repeating_stream('aabc')
Output:
'a#bb'
Example 2
Input:
first_non_repeating_stream('zz')
Output:
'z#'
0 <= len(s) <= 200000s contains lower-case letters.No results yet
Run your code to check it against the examples, or submit to run every test.