input: 
  from typing import List
  
  def find_max_element(array: List[int]) -> int:
      """
      Find and return the maximum element in the given array.
      
      >>> find_max_element([1, 10, 50, 3, 8])
      50
      >>> find_max_element([5, -3, 0, 100, 9])
      100
      """
      return max(array)
  
output:     if not array:
          raise ValueError("The array must not be empty")