TikTok interview question

leetcode4: find out the median in two sorted array