input: from typing import List
  
  def find_max_element(array: List[int]) -> int:
      """ Find the maximum element in the given array.
      >>> find_max_element([1, 10, 50, 3, 8])
      50
      >>> find_max_element([-10, -3, -5, -2])
      -2
      """
      
      return max(array)
output:     if not array:
          return None