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: 'a gray tiger cat sitting on top of a chair'. Reverse all words of length '3' in the given sentence.

SOLUTION: a gray tiger tac sitting on pot of a chair

PROBLEM: Sentence: 'a man walking a brown horse down a race track'. Reverse all words of length '4' in the given sentence.

SOLUTION: a man walking a brown horse nwod a ecar track

PROBLEM: Sentence: 'a person lying in a bed in a bedroom'. Reverse all words of length '3' in the given sentence.

SOLUTION:
a person lying in a deb in a bedroom