Rat chases it cheese

https://ide.codingblocks.com/s/56982 unable to pass to 2 test kindly debug my code…

Hey Neeraj, use one more boolean 2D array in your bool rat() to mark the already visited nodes, when you visits a cell mark it as true in the 2D array and before making a call for right and down in if condition also check if(visited[i][j+1]==false).