Yahoo interview question

Find the first repeated chat in a string