http://oj.leetcode.com/problems/jump-game-ii/