1 test case giving wrong answer


I am getting the wrong answer for 1 test case. Why is it so? How can I correct that??

hey @J19APPPP0007, intialaise your dp array with 0. Some changes needed in your code that I have made and indicate as comment, you can check them here https://ide.codingblocks.com/s/108673