Visa Inc. interview question

Find the first repeated character in a string