Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a dog resting his head on the edge of the pool next to an apple

apple an to next pool the of edge the on head his resting dog a