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 shirtless man lays on a bed and smiles'. Reverse all words of length '9' in the given sentence.

Answer: a sseltrihs man lays on a bed and smiles


Question: Sentence: 'a pair of boats are beside each other in the water'. Reverse all words of length '6' in the given sentence.

Answer: a pair of boats are ediseb each other in the water


Question: Sentence: 'a man getting ready to grab a frisbee as others watch'. Reverse all words of length '3' in the given sentence.

Answer:
a nam getting ready to grab a frisbee as others watch