Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a small cat and small dog looking in the opposite direction

direction opposite the in looking dog small and cat small a