Pergunta de entrevista da empresa Thriver

Write a function that returns the first repeated character in a string.