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 toilet and a roll of toilet paper'. Reverse all words of length '2' in the given sentence.
[EX A]: a toilet and a roll fo toilet paper

[EX Q]: Sentence: 'a cat with a santa hat standing on a rug'. Reverse all words of length '8' in the given sentence.
[EX A]: a cat with a santa hat gnidnats on a rug

[EX Q]: Sentence: 'the cat is intently inspecting the curly carrot'. Reverse all words of length '10' in the given sentence.
[EX A]:
the cat is intently gnitcepsni the curly carrot