if I have a list

{1, 1, 2, 3, 1, 1, 1}

each number resembles a category(question type) with subcategories(questions),

where 2 is the question whose answer i want to show after 3 clicks on the screen(numbers are chosen randomly), how do I do that, had something in mind but it turned out too complicated.

Just to check, if someone clicks 3 times you want to return the third item in the list?

So

3 clicks would return 2?

4 clicks would return 3?

if you have the number of clicks just return based on the index-1 due to list starting at zero

list[numberOfClicks-1]