Challange solution


#1

hi guys,

so i’ve had some hard time with the challenge, but after I saw just the start of the solution here, i got it.
the only thing i didn’t get is the for loop.
can someone explain why:

for(Stockholding *n in stock) …

is iterates through the array???

I NEED YOUR HELP!!

thank you!