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 pair of boats are beside each other in the water'. Reverse all words of length '6' in the given sentence.
[A]: a pair of boats are ediseb each other in the water


[Q]: Sentence: 'a woman is riding a show horse at a competition'. Reverse all words of length '6' in the given sentence.
[A]: a woman is gnidir a show horse at a competition


[Q]: Sentence: 'the back of peoples heads sitting on a bus'. Reverse all words of length '1' in the given sentence.
[A]:
the back of peoples heads sitting on a bus