input: def sort_list(array: List[int]) -> List[int]:
      """ Sorts the given list of numbers using the selection sort algorithm.
      >>> sort_list([4, 2, 6, 7, 1])
      [1, 2, 4, 6, 7]
      """
output:     for i in range(len(array)):
          min_index = i
          for j in range(i + 1, len(array)):
              if array[j] < array[min_index]:
                  min_index = j
          array[i], array[min_index] = array[min_index], array[i]
      return array