Given a stream of characters, find the kth non-repeated character at any given time.