input: Write a function to find the maximum element in a given array. The function should take a single parameter, which is the array of integers, and return the maximum element in that array. If the array is empty, the function should return -1.
  
  def find_max_element(array):
      if not array:
          return -1
      return max(array)
  
  assert find_max_element([1, 10, 50, 3, 8])==50
  assert find_max_element([5, 8, 12, 4, 9])==12
  assert find_max_element([100, 200, 300])==300
  assert find_max_element([7])==7
  assert find_max_element([])==-1
output: def find_max_element(array):
      if not array:
          return -1
      return max(array)