input: Write a python function to find the maximum element in a list.
  assert findMaxElement([1, 5, -3, 10]) == 10
  assert findMaxElement([0, -1, -2, -3, -4]) == 0
  assert findMaxElement([5, 8, 6, 2, 4]) == 8
output: def findMaxElement(lst):
      if not lst:
          return None
      max_element = lst[0]
      for element in lst:
          if element > max_element:
              max_element = element
      return max_element