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 taking a photo with his chocolate dessert and a beer'. Reverse all words of length '9' in the given sentence.
[EX A]: a man taking a photo with his etalocohc dessert and a beer

[EX Q]: Sentence: 'there is a bathroom with a oven and a refg'. Reverse all words of length '2' in the given sentence.
[EX A]: there si a bathroom with a oven and a refg

[EX Q]: Sentence: 'a catcher and a batter in a baseball field'. Reverse all words of length '3' in the given sentence.
[EX A]:
a catcher dna a batter in a baseball field