From the first index, jump forward at most k steps at a time to the last index, collecting values; maximize the total.
From the first index, jump forward at most k steps at a time to the last index, collecting values; maximize the total.
Opens with the full question.