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 man on a surfboard riding a wave in the ocean'. Reverse all words of length '6' in the given sentence.
a man on a surfboard gnidir a wave in the ocean

Sentence: 'a street filled with traffic and a very long bus'. Reverse all words of length '4' in the given sentence.
a street filled htiw traffic and a yrev gnol bus

Sentence: 'there is a piece of chocolate cake on the plate'. Reverse all words of length '5' in the given sentence.

ereht is a eceip of chocolate cake on the etalp

