Medium
First Repeat
Read a list of words and print the first word that has already appeared earlier in the list, or
None.Input
One line of words.
Output
A word or None.
Sample 1
Input
a b c b a
Output
b
Sample 2
Input
x y z
Output
None
Output appears hereHints