Tilling problem -2

code is not getting submitted but it is giving correct output on ide here is the link

@ayush1213 hey this question will be solved using dynamic approach.

@jaiskid but how can i know that is there any problem using simple approach

@ayush1213 hey ayush if all cases are right this question will give tle because this question belongs to dp the same question also in dynamic section