input: Write a function to find the maximum element in the given array. The function should return the maximum element found in the array.
  assert find_max_element([1, 10, 50, 3, 8])==50
  assert find_max_element([10, 30, 20, 40])==40
  assert find_max_element([5, 5, 5, 5])==5
  assert find_max_element([-1, -2, 0, -4])==0
  assert find_max_element([-10, -20, -30, -5])==-5
output: def find_max_element(arr):
      return max(arr)