Problem: Median of Two Sorted Arrays
Problem Description:
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).

Struggled to write bug-free code within 20 mins. Still have bugs. Take care of corner cases.