How to pass 2d array

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