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: 'the man smiles while holding a small boy'. Reverse all words of length '5' in the given sentence.

SOLUTION: the man smiles elihw holding a llams boy

PROBLEM: Sentence: 'grown black cat sitting in a blue chair in a living room'. Reverse all words of length '4' in the given sentence.

SOLUTION: grown black cat sitting in a eulb chair in a living moor

PROBLEM: Sentence: 'a wood pole with signs attached to it'. Reverse all words of length '8' in the given sentence.

SOLUTION:
a wood pole with signs dehcatta to it