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 leaning forward as he swings a tennis racket'. Reverse all words of length '2' in the given sentence.
[EX A]: a man leaning forward sa eh swings a tennis racket

[EX Q]: Sentence: 'a hand holds a napkin with a doughnut as potatoes sit in the bathroom'. Reverse all words of length '1' in the given sentence.
[EX A]: a hand holds a napkin with a doughnut as potatoes sit in the bathroom

[EX Q]: Sentence: 'a beautiful woman laying down next to a large brown dog'. Reverse all words of length '2' in the given sentence.
[EX A]:
a beautiful woman laying down next ot a large brown dog