Pergunta de entrevista da empresa Fidessa

Write a program to find first repeated char in a tring