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