Please check the code

url-https://ide.codingblocks.com/s/261487

check the code as 2 test cases are not accepted

@Sitikant while taking input you have stored row in n and column in m but everywhere you have used m as row and n as column.