Find the kth integer from the two sorted arrays when they merge.