input: Write a function to create a search engine in Python that performs a linear search through a given array. If the item is found, it should return its position; otherwise, it should return -1.
  
  # Define the array
  array = ['school', 'hospital', 'bookstore', 'mall', 'theatre']
  
  # Function to perform linear search
  def linearSearch(search_item):
      # Loop through array
      for i in range(len(array)):
          # If search item is found, return its position
          if array[i] == search_item:
              return i
      # If item is not found, return -1
      return -1
  
  assert linearSearch('mall') == 3
  assert linearSearch('library') == -1
  assert linearSearch('hospital') == 1
  assert linearSearch('school') == 0
  assert linearSearch('theatre') == 4
output: def linearSearch(search_item):
      array = ['school', 'hospital', 'bookstore', 'mall', 'theatre']
      for i in range(len(array)):
          if array[i] == search_item:
              return i
      return -1