How do I pass 2d array parameter?

I am solving the matrix search question.
This is the link : [ https://ide.codingblocks.com/s/194830 ]

@amitqy
hello Amit,
pls check this article-> https://www.tutorialspoint.com/Passing-two-dimensional-array-to-a-Cplusplus-function