public int minHeight(int[] height,int sta,int end){
        int min =0Xffff;
        int index =sta;
        for(int i= sta; i<=end ;i++){
            if(min > height[i]){
                min = height[i];
                index = i;
            }
        }
        return index;
    }