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 man watches two giraffes eating from a box'. Reverse all words of length '4' in the given sentence.
[EX A]: a man watches two giraffes eating morf a box

[EX Q]: Sentence: 'a dog is catching a frisbee at a competition'. Reverse all words of length '11' in the given sentence.
[EX A]: a dog is catching a frisbee at a noititepmoc

[EX Q]: Sentence: 'a closed toilet inside a slightly messy bathroom'. Reverse all words of length '5' in the given sentence.
[EX A]:
a closed toilet inside a slightly yssem bathroom