Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a pirate them bedroom with children in the bed is pictured

pictured is bed the in children with bedroom them pirate a