input: Write a python function to search for a product in a list and return its index.
  assert search(["apple", "banana", "cherry"], "banana") == 1
  assert search(["laptop", "phone", "tablet"], "phone") == 1
  assert search(["book", "pen", "notebook"], "notebook") == 2
output: def search(products, item):
      for index, product in enumerate(products):
          if product == item:
              return index
      return -1