input: Write a python function to find the index of an element in a list.
  assert findIndex([3, 7, 9, 10], 7) == 1
  assert findIndex([1, 2, 3, 4, 5], 3) == 2
  assert findIndex(['a', 'b', 'c', 'd'], 'c') == 2
  assert findIndex([3, 7, 9, 10], 5) == -1
output: def findIndex(lst, element):
      try:
          return lst.index(element)
      except ValueError:
          return -1