Minimum Jumps Required

My Code Link : https://ide.codingblocks.com/s/424815

Kindly,Can anyone debug my code ?

Hey @Deepak_nsit it’s a dp problem. COncept of dp is needed to solve this problem.
See for test case:
1
6
1 3 6 1 0 9
Expected output is: 3
Yours is giving is: 4
You have to do this question with dp, attaching dp code for reference purposes
DP concept