public class Solution { public int minIndex(int[] array, int i) { int left =i; for(int j = i+1 ; j<array.length; j++){ if(array[left]>array[j]){ left =j; } } return left; } }