Amazon Lab126 interview question

Find first repeating character from a given string