I came across this question on a quiz for my course, I have spent over an hour staring at the code and cannot make heads or tails of it. I thought this would have populated the first index of the array with an value of '1' since the value of count at the first iteration of the while-loop would have been 0.
Can someone explain to me how it populates the array with the values '18, 21, 24, 27, 30'.