In this task, you need to reverse all words of a given length in the sentence. The number of letters in a word determine its length. For example, the length of the word "apple" is 5.

[EX Q]: Sentence: 'a herd of horses is exercised in the yard led by a man on horseback'. Reverse all words of length '6' in the given sentence.
[EX A]: a herd of sesroh is exercised in the yard led by a man on horseback

[EX Q]: Sentence: 'a mix of vegetables in a pot with a spoon'. Reverse all words of length '4' in the given sentence.
[EX A]: a mix of vegetables in a pot htiw a spoon

[EX Q]: Sentence: 'a cat sleeping on top of a white chair'. Reverse all words of length '2' in the given sentence.
[EX A]:
a cat sleeping no top fo a white chair