def find_shortest(array: list[int]) -> int:
   """ Find the shortest element in an array.

   find_shortest
   =============

   The `find_shortest` function takes an array and finds the shortest element
   in it.

   Parameters
   ----------

   array: list[int]
      An array/list of integers

   Returns
   -------

   index: int
      Index of the shortest element is in the array
   """
   index = 0                                                                    # Stores the index of the shortestvalue
                                                                                # value
   shortest = array[index]                                                      # Stores the shortest value

   for i in range(len(array)):
      if array[i] < shortest:
         shortest = array[i]
         index = i

   return index