Calculate Score After Performing Instructions
Follow the instructions from index zero, adding values and jumping, and stop at the first revisited index.
Follow the instructions from index zero, adding values and jumping, and stop at the first revisited index.