class SelectionInTwoSortedArray {

    public static int getHalfOfNthElementInTwoSameLengthArray(int[] A, int[] B) {
        assert A.length == B.length;
        int k = A.length;
        if (k <= 0) {
            throw new IllegalArgumentException("invalid k " + k);
        }
        //TODO: ADD YOUR CODE HERE
        return -1;
    }

}