finished findKClosestElementsToN and maxSumPathBetweenTwoArrays