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: 'the couple are smiling at each other as they sit on a bench'. Reverse all words of length '4' in the given sentence.
the couple are smiling at hcae other as yeht sit on a bench

Sentence: 'a boat floating on a lake through a brick bridge'. Reverse all words of length '5' in the given sentence.

a boat floating on a lake through a kcirb bridge