Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a dog riding in a car while hanging his head out the window

window the out head his hanging while car a in riding dog a