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

SOLUTION: an dlo traditional pirate ship in modern city

PROBLEM: Sentence: 'a red double decker bus parked next to a brick building'. Reverse all words of length '4' in the given sentence.

SOLUTION: a red double decker bus parked txen to a brick building

PROBLEM: Sentence: 'a dirty blue and white bus near a curb with the driver in it'. Reverse all words of length '6' in the given sentence.

SOLUTION:
a dirty blue and white bus near a curb with the revird in it