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: 'the bathroom has a toilet a window and a sink'. Reverse all words of length '8' in the given sentence.
[A]: the moorhtab has a toilet a window and a sink


[Q]: Sentence: 'a person is on the court and playing tennis'. Reverse all words of length '3' in the given sentence.
[A]: a person is on eht court dna playing tennis


[Q]: Sentence: 'a plack dog is standing over a frisbee'. Reverse all words of length '4' in the given sentence.
[A]:
a plack dog is standing revo a frisbee