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 dog sitting in the passenger seat of a vehicle'. Reverse all words of length '9' in the given sentence.

SOLUTION: a dog sitting in the regnessap seat of a vehicle

PROBLEM: Sentence: 'a shirtless man lays on a bed and smiles'. Reverse all words of length '9' in the given sentence.

SOLUTION: a sseltrihs man lays on a bed and smiles

PROBLEM: Sentence: 'there is a man standing next to luggage'. Reverse all words of length '5' in the given sentence.

SOLUTION:
ereht is a man standing next to luggage