Jump Game IX
From each index, jump right only toward smaller values and left only toward larger values. The answer at each index is the largest value reachable.
From each index, jump right only toward smaller values and left only toward larger values. The answer at each index is the largest value reachable.