Median of Two Sorted Arrays | LeetCode 4 | Java