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 photo of a glass of wine an apple and a banana'. Reverse all words of length '2' in the given sentence.
a photo fo a glass fo wine na apple and a banana

Sentence: 'a city truck two city buses and a yellow fire hydrant'. Reverse all words of length '4' in the given sentence.
a ytic truck two ytic buses and a yellow erif hydrant

Sentence: 'a truck riding on the grass with people behind it'. Reverse all words of length '6' in the given sentence.

a truck gnidir on the grass with elpoep dniheb it