There is a string given. Find the first repeated character in it.
Write a function
solve that have the following parameter(s):
1.) a = string
There is string:
The function will return,
e is the first repeated character in the given string.
• The size of the string will be greater than or equal to 1 and less than or equal to 4000.