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.

Q: Sentence: 'a tennis player is swinging at a tennis ball'. Reverse all words of length '2' in the given sentence.

A: a tennis player si swinging ta a tennis ball
****
Q: Sentence: 'a person wearing a black jacket is standing next to a horse'. Reverse all words of length '8' in the given sentence.

A: a person wearing a black jacket is gnidnats next to a horse
****
Q: Sentence: 'a man riding a wave on top of a surfboard'. Reverse all words of length '4' in the given sentence.

A:
a man riding a evaw on top of a surfboard
****