input: 
  def find_max_element(array: List[int]) -> int:
      """ Find the maximum element in the given array.
      >>> find_max_element([1, 10, 50, 3, 8])
      50
      >>> find_max_element([-1, -2, -3, -4])
      -1
      """
      return max(array)
  
output:     max_element = array[0]
      for num in array:
          if num > max_element:
              max_element = num
      return max_element