why is it failing 4 testcases?
Tilling problem
You are supposed to solve this problem using dynamic programming approach only… as it contains overlapping subproblems… so I would recommend you to first go through the dynamic programming approach and then try to implement the solution…