Pairs of Integers
You are given two sorted arrays of integers and an integer K as arguments. Find one integer from each array that sums up to the integer K and return the pair as an array of integers.
- Must return an array of two integers
solve([1,2,3], [4,5,6], 8) > [2, 6]
solve([1,2,3], [4,5,6], 9) > [3, 6]