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.

Sentence: 'a bird sits atop a post near a boat dock with large boats in the background'. Reverse all words of length '1' in the given sentence.
a bird sits atop a post near a boat dock with large boats in the background

Sentence: 'a laptop is sitting on a table with a bottle of coke'. Reverse all words of length '2' in the given sentence.
a laptop si sitting no a table with a bottle fo coke

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

a dog wearing a wooden tie sitting in its masters lap