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 group of men playing on a basketball court next to doors'. Reverse all words of length '3' in the given sentence.
[A]: a group of nem playing on a basketball court next to doors


[Q]: Sentence: 'a toilet and a sink in small bathroom'. Reverse all words of length '2' in the given sentence.
[A]: a toilet and a sink ni small bathroom


[Q]: Sentence: 'a woman and a dog sitting with abook'. Reverse all words of length '1' in the given sentence.
[A]:
a woman and a dog sitting with abook