how to accept this 2d array in my recursion function? i tried declaring n and array globally . pls help