Question - You have to find the number of ways you can reach from the intial position (1,1) to the final position (N,M)