A Zynga game event stream contains a sequence of characters representing compact player actions. Given a string s and a positive integer n, return the nth character that appears exactly once in the entire string, preserving the characters' original order.
Process the input string in a single left-to-right iteration. If fewer than n characters are non-repeating, return None.
s, a string, and n, a positive integer.None if it does not exist.A and a are different characters.def find_nth_non_repeating(s, n):