twoSum and findMedianSortedArrays