Code Will Not work...Why!?

My project is to create a very simple quiz using basic methods and functions from strings, arrays, for/while loops. I am supposed to create a loop asking 5 questions and collect the users data in an array. I then need to compare the data and calculate a grade percentage based on their answers. My code is not storing the users answers and is returning 0 when trying to print the assigned array. If anyone can take a look, I have the whole code here, I have also done it in multiple variations and still getting the same results

it is impossible to debug from a screenshot, please share your code

try set condition before looping array check is empty or not if isn’t 0 then loop