jump game 2

please note: dp cannot pass large test case.