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 woman holds a frisbee close by a second woman that is eying the frisbee with an arm held out while two other players stand waiting in the background'. Reverse all words of length '4' in the given sentence.

SOLUTION: a woman holds a frisbee close by a second woman taht is eying the frisbee htiw an arm dleh out while two other players stand waiting in the background

PROBLEM: Sentence: 'a black and white image of a tea pot on the stove'. Reverse all words of length '2' in the given sentence.

SOLUTION:
a black and white image fo a tea pot no the stove