rewrite leetcode jump game i ii