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: 'an old traditional pirate ship in modern city'. Reverse all words of length '3' in the given sentence.
an dlo traditional pirate ship in modern city

Sentence: 'the young man is setting in the floor with his computer ear an outlet'. Reverse all words of length '3' in the given sentence.
eht young nam is setting in eht floor with sih computer rae an outlet

Sentence: 'a green car next to street with tree and person walking'. Reverse all words of length '7' in the given sentence.

a green car next to street with tree and person gniklaw