Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a man holding a baby up on the floor next to a beagle dog

dog beagle a to next floor the on up baby a holding man a