Jump Game, DP solution