class SelectionInTwoSortedArray {

    public static int getKthElementInTwoArray(int[] A, int[] B, int k) {
        if (k <= 0 || k > A.length + B.length) {
            throw new IllegalArgumentException("invalid k " + k);
        }
        return help(A, B, k);
    }

}