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 cat in a bathroom sitting on a toilet'. Reverse all words of length '3' in the given sentence.
[A]: a tac in a bathroom sitting on a toilet


[Q]: Sentence: 'a dog wearing a wooden tie sitting in its masters lap'. Reverse all words of length '1' in the given sentence.
[A]: a dog wearing a wooden tie sitting in its masters lap


[Q]: Sentence: 'a herd of horses gathered at the top of a hill'. Reverse all words of length '8' in the given sentence.
[A]:
a herd of horses derehtag at the top of a hill