Minimum Jumps Required

I am getting wrong answers in all test cases. Kindly tell where I am getting wrong. Here is my code :

Hey @Puneet_Sharma
just a change in getMinJumpsTD fun
int ans = Integer.MAX_VALUE;
for(int i=1; i<=arr[vidx] && i+vidx<arr.length;i++){
int currans = getMinJumpsTD(arr, i+vidx, strg);
if (currans != Integer.MAX_VALUE && currans + 1 < ans)
ans = currans + 1;

	}

correct code : https://ide.codingblocks.com/s/290382