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 gray tiger cat sitting on top of a chair'. Reverse all words of length '3' in the given sentence.
[EX A]: a gray tiger tac sitting on pot of a chair

[EX Q]: Sentence: 'an adult goat standing beside its baby goats in a grassy area'. Reverse all words of length '5' in the given sentence.
[EX A]: an tluda goat standing beside its baby staog in a grassy area

[EX Q]: Sentence: 'a pie on a place mat on a table'. Reverse all words of length '3' in the given sentence.
[EX A]:
a eip on a place tam on a table