Rat in a maze problem

Why the initial position ie (0,0) is considered as a solution and it is marked as 1 ?

Hello @arpanadhikary you have understood this in the wrong manner we are just starting it from the (0,0) we are sending the recursion call to check whether this block is opened or not but this is just the case because if this block is even close then you wouldnt be able to move further that is why you we are starting from (0,0) .
if you still have any doubt you can ask here:
Happy Learning!!