Tilling Problem(Submision Problem)

I am unable to submit the solution to this question. It shows nothing when I submit this solution.

Yash, this question needs to be solved using dynamic programming approach only, as it contains overlapping subproblems. Plz try to solve using that only.