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 checks upon a baby in a bed'. Reverse all words of length '1' in the given sentence.

SOLUTION: a woman checks upon a baby in a bed

PROBLEM: Sentence: 'a very tall tower with a big pretty clock on it'. Reverse all words of length '4' in the given sentence.

SOLUTION:
a yrev llat tower htiw a big pretty clock on it