Fidessa interview question

Write a program to find first repeated char in a tring