https://github.com/mission-peace/interview/blob/master/src/com/interview/binarysearch/MedianOfTwoSortedArrayOfDifferentLength.java
Line#47 passes an unsorted array as input, it expects a sorted array
int[] y = {7, 11, 19, 21, 18, 25};
should be
int []y = {7, 11, 18, 19, 21, 25};