Only one test case passing with DP approach

idk why other test case not passing as it working fine on custom cases