input: from typing import List
  
  
  def linearSearch(search_item: str, array: List[str]) -> int:
      """
      Searches for an item in a given array using a linear search algorithm.
      If the item is found, it returns the index of the item in the array;
      otherwise, it returns -1.
      >>> linearSearch('bookstore', ['school', 'hospital', 'bookstore', 'mall', 'theatre'])
      2
      >>> linearSearch('library', ['school', 'hospital', 'bookstore', 'mall', 'theatre'])
      -1
      """
      # 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
output:     # 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