Deutsche Bank Interview Question

Jump game array question from dynamic programming