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 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 couch and table sits outside with fake sheep'. Reverse all words of length '1' in the given sentence.
[A]: a couch and table sits outside with fake sheep


[Q]: Sentence: 'people on the beach while a boat comes in to the pier'. Reverse all words of length '4' in the given sentence.
[A]:
people on the beach while a taob comes in to the reip