Multiple choice with number of attempts

In this multiple choice test, the answer key is stored in screen 6 as a list in the graph.
eg. here if L=[1,2,3,2,4] means the answer to q1 is A, q2 is B …etc

The students answer the questions and keep trying each question until they get the correct answer. Slide 6 then tells them how many attempts they took to answer all the questions correctly.