GammaStack interview question

Q. Write a code to find first repeating character in a given string.