In the solution, we have first checked for number of ways from the left and then used mod on it. Then when we check for number of ways from the top, we add the previous value and the no. of ways from top but we do not
take mod of the number of ways from top rather do it for the total. So wouldn’t the expression become
(left%MOD + top)%MOD and shouldnt it be
(left%MOD + top%MOD)%MOD??