use an array to indicate max steps to current index and execute forward to solve Jump Game