Jump Game III

Implement solve for Jump Game III. Return the required output for the provided arguments.

Examples
Input: [[4,2,3,0,3,1,2],5]
Output: true
Hints

Jump Game III

Implement `solve` for **Jump Game III**. Return the required output for the provided arguments.