Problem understanding the question

Problem: Matrix Search(Challenges-1D Arrays)
in the problem, the input format does not contain an input for the no. of test cases and the question also does not state this clearly.what is the correct input format?

Hi Anish, there are no multiple test cases. There will be just one matrix. The first line of the input consists of the number of rows and columns.