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 curled up sleeping on a bed with pillows'. Reverse all words of length '6' in the given sentence.

SOLUTION: a dog delruc up sleeping on a bed with pillows

PROBLEM: Sentence: 'there is a sign stating that there is a scenic drive'. Reverse all words of length '4' in the given sentence.

SOLUTION: there is a ngis stating taht there is a scenic drive

PROBLEM: Sentence: 'a shirtless man contorting his body while holding a frisbee'. Reverse all words of length '1' in the given sentence.

SOLUTION:
a shirtless man contorting his body while holding a frisbee