Creating generate Function
This function only works as wrapper, who will pass the value to bigger function called generateUtil.
static void generate(int[] A, int[] B, int m, int n)
{
    int[] C = new int[m + n];
    /* output array */
    generateUtil(A, B, C, 0, 0, m, n, 0, true);
}