input: Write a python function to find the line number of a given word in a document.
  assert findWord("Hello world\nThis is a test\nAnother line", "test") == 2
  assert findWord("Line one\nLine two\nLine three\nLine four", "Line three") == 3
  assert findWord("Alpha\nBeta\nGamma\nDelta", "Omega") == -1
output: def findWord(document, word):
      lines = document.split('\n')
      for i, line in enumerate(lines):
          if word in line:
              return i + 1
      return -1