The question is that you have to calculate the number of ways you can travel from the first index to the last index in a 2D array, here 0 means that you can enter the house,