DIY: Jump Game IV

Solve the interview question "Jump Game IV" in this lesson.

Problem statement

In this challenge, you are ...