Fidessa Interview Question

Write a program to find first repeated char in a tring