Pergunta de entrevista da empresa Desquared

Find the first repetitive character in a string