Write a program that outputs the first recurring character in a string.
A string of alphabetical characters. Example:
ABCDEBC
The first recurring character from the input. From the above example:
B
What is exactly the definition of 'first recurring character'?
- It is the character that recurs first (B in the series ABBA)
ABCDEBC ➞ B
ABBA ➞ B