Given two sorted arrays find indexes of elements that sum to a given integer