To pick next pair , traverse for all elements of arr1 [ ] , for every element , find corresponding current element in arr2 [ ] and pick minimum of all formed pairs .
for i1 in range ( 0 , n1 , 1 ) : NEW_LINE