public static int[] make2(int[] a, int[] b) {
        int[] arr = new int[2];

        int j = 0;
        boolean aTurn = (j == a.length ? false : true);
        for (int i = 0; i < arr.length; i++) {
            if (aTurn) {
                if (j < a.length) {
                    arr[i] = a[j];
                    j++;
                    if(j == a.length) {
                        aTurn = false;
                        j = 0;
                    }
                }
            }
            else {
                if (j < b.length) {
                    arr[i] = b[j];
                    j++;
                }
            }
        }

        return arr;
    }