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 child is smiling for the camera while outside'. Reverse all words of length '1' in the given sentence.
[EX A]: a child is smiling for the camera while outside

[EX Q]: Sentence: 'fruit are arranged in white net cups and in plastic containers at a market'. Reverse all words of length '4' in the given sentence.
[EX A]:
fruit are arranged in white net spuc and in plastic containers at a market