not getting right output . ide: https://ide.codingblocks.com/s/193504
@Vishal123 try returning DP[n] instead of n-1
only one test case has passed
@Vishal123 Send me your updated code.
i submit it again and it has passed .
@Vishal123 Great work.