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 man in shorts is swinging a bat'. Reverse all words of length '1' in the given sentence.
[A]: a man in shorts is swinging a bat


[Q]: Sentence: 'a keyboard a mouse a monitor and a brown table'. Reverse all words of length '3' in the given sentence.
[A]: a keyboard a mouse a monitor dna a brown table


[Q]: Sentence: 'bedroom containing furniture tables and other bedroom accessories'. Reverse all words of length '9' in the given sentence.
[A]:
bedroom containing erutinruf tables and other bedroom accessories