MATRIX SEARCH 1 test case wrong(2nd)

2nd test case
question = https://hack.codingblocks.com/contests/c/452/705
solution = https://ide.codingblocks.com/#/s/21513