Oracle interview question

Jump Game III (Leetcode), based on Graphs