jump game with greedy and DP