ABB interview question

Find the first repeating character in a string