I noticed that right away.  If the point was to produce printed output, then this is fine (and a lot of analysis works backward from output).  But, as stated, one is supposed to shift an array, so this missed it.