First recurring letter Problem Submissions Leaderboard Discussions Given a string, return the first recurring letter of that string. If there are no recurring letters, return “None”.
Input Format
The input line contains a string Constraints
The string length should be bigger than 2 The string should not contain whitespaces Output Format
Return the recurring letter or “None”
Sample Input 0
life
Sample Output 0
None
Explanation 0
In the word life there is no recurring letter, so the output should be None
Sample Input 1
gjirafa
Sample Output 1
a
Explanation 1
The first recurring letter in the string gjirafa is a
Sample Input 2
statistics
Sample Output 2
t
Explanation 2
The first recurring letter in the string statistics is t
Sample Input 3
work
Sample Output 3
None