Start from the second element , move from right to left and construct the jumps [ ] array where jumps [ i ] represents minimum number of jumps needed to reach arr [ m - 1 ] form arr [ i ]
for i in range ( n - 2 , - 1 , - 1 ) : NEW_LINE