input: Write a python function to search for a target value in an array and return the index if found, otherwise return -1.
  assert search([2, 4, 6, 3, 1], 4) == 1
  assert search([2, 4, 6, 3, 1], 3) == 3
  assert search([2, 4, 6, 3, 1], 7) == -1
output: def search(arr, target):
      for index, value in enumerate(arr):
          if value == target:
              return index
      return -1