Help me in solving S07E09 problem

My issue

How a person will be able to pass a bowl from one end to another end if there are more than one minimums. let’s say the array is 3 0 1 0 5 0. is there a way the bowl can take more than one second. but according to solution it is expected to have answer as 3. please explain if i am doing something wrong or i misunderstood the question.

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--){
	    int n;
	    cin>>n;
	    vector<int>zero;
	    vector<int>a(n);
	    int miniIndez=
	    for(int i=0;i<n;i++){
	        cin>>a[i];
	        if(a[i]==0){
	            zero.push_back(i+1);
	        }
	    }
	    
	    
	}

}

Learning course: 1800 to 2000 difficulty problems
Problem Link: The One with All the Candy Practice Problem in 1800 to 2000 difficulty problems