Find the first repeated word in a book.
Write a function that accepts a lengthy string parameter.
Without utilizing any of the built-in library methods available to your language, return the first word to occur more than once in that provided string.
Space: O(1)
Time: O(1)