Pregunta de entrevista de Deutsche Bank

Jump game array question from dynamic programming