Need some help figuring out my code

Yup, the funny thing is he makes us use j for index because i looks too much like 1... Laughable (i'm 99% sure my arduino is better than his and I'm pretty bad at arduino)