Bridgenext interview question

find 1st repeated character in string