Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a girl is smiling and walking while carrying a dog in her bag

bag her in dog a carrying while walking and smiling is girl a