DP for Jump Game II, however, time limit exceeds