How to initialise and use array in game assignment

Yeah but I don’t know how to use it here. I know there’s a way to assign values to an array using for loop but I don’t know how to apply it to this case