leetcode median of two sorted arrays - merge and count