function findMinMaxIndex(array)
minVal = array[1]
minInd = 1
maxVal = array[1]
maxInd = 1
for i in eachindex(array)
if array[i] < minVal
minVal = array[i]
minInd = i
elseif array[i] > maxVal
maxVal = array[i]
maxInd = i
end
end
return minInd, maxInd
end
array = [8, 2, 9, 10, 5, 4, 2, 7, 18, 0]
println("Indexes: ", findMinMaxIndex(array))