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: 'this cat is sitting on a porch near a tire'. Reverse all words of length '7' in the given sentence.

SOLUTION: this cat is gnittis on a porch near a tire

PROBLEM: Sentence: 'the young man is setting in the floor with his computer ear an outlet'. Reverse all words of length '3' in the given sentence.

SOLUTION: eht young nam is setting in eht floor with sih computer rae an outlet

PROBLEM: Sentence: 'the heart of a purple plant in a garden'. Reverse all words of length '6' in the given sentence.

SOLUTION:
the heart of a elprup plant in a nedrag