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