Jump Game III

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

Examples
Input: [[0],0]
Output: true
Hints

Jump Game III

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