input: Write a python function to check if an element exists in the given array.
  assert search([1, 2, 3, 4, 5], 5) == True
  assert search([1, 2, 3, 4, 5], 6) == False
  assert search([10, 20, 30, 40], 20) == True
  assert search([], 1) == False
output: def search(arr, element):
      return element in arr