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.

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

[EX Q]: Sentence: 'a happy white man with sunglasses on a boat'. Reverse all words of length '1' in the given sentence.
[EX A]: a happy white man with sunglasses on a boat

[EX Q]: Sentence: 'a woman and two boys are laying on a bed looking at a magazine with a dog at the foot of the bed'. Reverse all words of length '6' in the given sentence.
[EX A]:
a woman and two boys are gniyal on a bed looking at a magazine with a dog at the foot of the bed