Indeed interview question

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