Whenever the sum of the current element in the first array and the current element in the second array is more than s, the algorithm moves to the next element in the first array.
Kad god je suma trenutnog elementa u prvom nizu i trenutni element u drugom nizu više od s,algoritam prelazi na sledeći element u prvom nizu.