Domanda di colloquio di Indeed

Write a function that takes a String and returns the first repeated word.