Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a man and a dog walking on a beach near a lot of stacked chairs

chairs stacked of lot a near beach a on walking dog a and man a