Indeed Interview Question

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