Challenge Information

Title : Repeated Character
Difficulty : Easy
Solutions : 5
Maximum Score : 50
Completed by You: No
Description :

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

Example
Input:
greed
Output:
The function will return,
e

Explanation
As e is the first repeated character in the given string.

Example
Input:
whatsapp
Output:
The function will return,
a

Explanation
As a is the first repeated character in the given string.

Constraints

Judocode