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: 'there are two men sitting on a park bench'. Reverse all words of length '5' in the given sentence.

SOLUTION: ereht are two men sitting on a park hcneb

PROBLEM: Sentence: 'a green bench on the sand and some water'. Reverse all words of length '4' in the given sentence.

SOLUTION:
a green bench on the dnas and emos water