def find_min_pos(input_list):
  """Function to find index with minimum value."""
  length = len(input_list)
  if length == 0:
    return -1

  curr_min = input_list[0]
  curr_min_index = 0

  for j in range(1, length):
    if curr_min > input_list[j]:
      curr_min = input_list[j]
      curr_min_index = j

  return curr_min_index