In challenge section the program rat in maze is failing test cases

1<=N,M<=1000

u have taken
char maze[10][10];

int soln[10][10] = {0};
hence the code does not work well
make the 2D matrix of bigger size

Again this is not working even when i have changed the size

added comments where code updated

size has to be 1 greater than given constraints

I have did once you check it properly

@kishoretaru
please check the code
i have added comments a lot of update is needed