Tuesday common C++ interview problem: Reaching the last element.
Given an array of positive integers (zero included), determine whether you can reach the final element.
You start at index zero and, in one step, can move at most the value at your current position.
Solve it yourself: https://compiler-explorer.com/z/1oqfq38nb
Solution: https://compiler-explorer.com/z/Mdoq36ndo