I want to find out a first 1\'s index and last 1\'s index in a or-tools 1-D bool array , it look like this: if the array=[0,0,1,0,1,0,1,0] , I wish to get first_one_index = 2 a