Find the N-th Value After K Seconds
Each second every position becomes the running total of the values before it, so the answer is a prefix sum updated in place.
Each second every position becomes the running total of the values before it, so the answer is a prefix sum updated in place.