Reversing an input sequence of words.