input: 
  def find_max_element(array: list) -> int:
      """Given a list of integers, find the maximum element in the list.
      >>> find_max_element([1, 10, 50, 3, 8])
      50
      """
      return max(array)
  
output:     max_element = array[0]
      for num in array:
          if num > max_element:
              max_element = num
      return max_element