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.

[EX Q]: Sentence: 'a person on a surfboard riding a wave in the water'. Reverse all words of length '5' in the given sentence.
[EX A]: a person on a surfboard riding a wave in the retaw

[EX Q]: Sentence: 'an old traditional pirate ship in modern city'. Reverse all words of length '3' in the given sentence.
[EX A]: an dlo traditional pirate ship in modern city

[EX Q]: Sentence: 'two pug dogs setting on a green park bench wearing harnesses'. Reverse all words of length '7' in the given sentence.
[EX A]:
two pug dogs gnittes on a green park bench gniraew harnesses