Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: the mans pets are resting on the sidewalk the cat relaxing on the dogs back

back dogs the on relaxing cat the sidewalk the on resting are pets mans the