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

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


Question: Sentence: 'a messy room painted green with debris on the ground and birds appear to be in the room'. Reverse all words of length '1' in the given sentence.

Answer: a messy room painted green with debris on the ground and birds appear to be in the room


Question: Sentence: 'two giraffes in a grassy area next to trees'. Reverse all words of length '3' in the given sentence.

Answer:
owt giraffes in a grassy area next to trees