I'm curious, but couldn't this whole loop be replaced with `seq.reverse()`?