Find repeated words in the input text. The output should display the word and line where the word was repeated