public static int getMedianOfSortedArrays(int[] arr1, int[] arr2, int n)
    {        
        if (n <= 0)
        {
            return -1;
        }
        
        if (n == 1)
        {
            return (arr1[0] + arr2[0]) / 2;
        }
        
        if (n == 2)
        {
            return ((Math.max(arr1[0], arr1[1])) + Math.max(arr2[0], 
                    arr2[1]) / 2);
        }
        
        int m1 = getMedian(arr1);
        int m2 = getMedian(arr2);
        
        if (m1 == m2)
            return m1;
        
        if (m1 < m2)
        {
            if (n % 2 == 0)
            {
                //return getMedian(arr1 + n/2 - 1, arr2, n - n/2 + 1);
            }
        }
        
        return 0;
    }