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 messy bedroom with items covering the floor'. Reverse all words of length '8' in the given sentence.
a messy bedroom with items gnirevoc the floor

Sentence: 'yachts are all tied up in a marina dock'. Reverse all words of length '3' in the given sentence.
yachts era lla tied up in a marina dock

Sentence: 'a shot of a television from the bed in a bedroom'. Reverse all words of length '1' in the given sentence.

a shot of a television from the bed in a bedroom