input: Write a python function to search for an element in an array and return its index, or -1 if the element is not found.
  assert search_array([3, 5, 7, 8, 9], 5) == 1
  assert search_array([3, 5, 7, 8, 9], 10) == -1
  assert search_array([1, 2, 3, 4, 5], 4) == 3
  assert search_array([], 1) == -1
output: def search_array(arr, element):
      try:
          return arr.index(element)
      except ValueError:
          return -1