How to approach this question?

I have no idea how to approach this question due to the list repeating.

Looped Playlist