add method using DP
addig O(n) time complex method by using DP
resolve Jump_Game_II