1 count using Dynamic programming

My code is failing one test case. Please Help.

hello @rahul.gupta03111999
check ur code for this case->
1 0
0