input: 
  def find_max_element(array: List[float]) -> float:
      """
      Find the maximum element in the given array.
      >>> find_max_element([1, 10, 50, 3, 8])
      50
      """
      return max(array)
  
output:     if not array:
          raise ValueError("The array is empty")