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 dog curled up sleeping on a bed with pillows'. Reverse all words of length '6' in the given sentence.
a dog delruc up sleeping on a bed with pillows

Sentence: 'a dog standing on top of a dirt field next to a frisbee'. Reverse all words of length '4' in the given sentence.
a dog standing on top of a trid field txen to a frisbee

Sentence: 'a body of water with some bears inside of it'. Reverse all words of length '2' in the given sentence.

a body fo water with some bears inside fo ti