Update 2025-06-04: Thanks for the submissions everyone! It seems like a lot of the solutions are quite slow / timeout for the 100 length test case, so I don't think any will be able to do the 10k. Probably my fault for not specifying in the rules originally, but if anyone can create a more efficient solution which can solve the 10k within the time limit applied by TIO (60s) that would be the winner in my eyes. I may have a crack at it myself but I'm quite busy at the moment. I believe treating this as a graph problem will be helpful.
You will be provided with a list of numbers. Your goal is to visit each index of the list once (and only once). Starting from some element, you must look at the value stored in that element, and then move that many spaces left or right (if it is possible to do so within the bounds of the list).