Definition: In this task, you need to reverse the order of words in the given sentence.
Input: Sentence: a group of people riding on the backs of horses

horses of backs the on riding people of group a