Tilling test case issue

https://ide.codingblocks.com/s/111500 please explain why all the test cases are not working

You are required to solve this question by dp, but you are not using correct approach in your solution. Plz use some other approach to solve.