some test cases failing… plx check logic
@dakshi send me your code i will check it.
@dakshi when (i==n-1 and j==m-1) before returning true make sol[i ][j]=1.