Wrong answer in test cases

None of the test cases is passing please help

Hey @kunal81198 can you please tell me why did you used this condition in your dp as it’s not understandable