Finding which value I will be on after a certain number of steps

I have a fixed array: [a,b,c], I wanna loop through this 3-items-sized array for 7 times in order to find what I would get at that exact step.

The "value stack" for 7 would look like a b c a b c a.

Question is, how can I find what value would be at step 10, for example?

Input: getValueForStep( [a,b,c], 7 )

Output: a