General Motors (GM) interview question

Loop/Array question. Know your for loops