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 baseball player tossing a ball to another player'. Reverse all words of length '2' in the given sentence.
[EX A]: a baseball player tossing a ball ot another player

[EX Q]: Sentence: 'a man and a dog in the water with a surfboard'. Reverse all words of length '2' in the given sentence.
[EX A]: a man and a dog ni the water with a surfboard

[EX Q]: Sentence: 'a person sitting on a bed with pillows'. Reverse all words of length '6' in the given sentence.
[EX A]:
a nosrep sitting on a bed with pillows