solution: jump game 1 -> dp