Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a herd of cows grazing on a hill top and resting

resting and top hill a on grazing cows of herd a