How do I move a sequence through an array?

Thank you. I understand what the modulo does, but I don't understand how it helps to achieve my goal. That is what I was hoping for an example of. It's been ages since I last did some coding and I think the basic math part of my brain has fallen into disrepair!