Matrix search wrong answer

In testCase #2,I, on my PC’s complier, getting answer 0, however, hackerblocks compiler is giving wring answer for the same.

@rmittal_be16 hey Raghav, Please can you share the code link of your coding block ide.