The function applies a simple word reversal rule, where it reverses the order of the input words.

