Domanda di colloquio di Deutsche Bank

Jump game array question from dynamic programming