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 man and a dog in the water with a surfboard'. Reverse all words of length '2' in the given sentence.

Answer: a man and a dog ni the water with a surfboard


Question: Sentence: 'a group of men playing on a basketball court next to doors'. Reverse all words of length '3' in the given sentence.

Answer: a group of nem playing on a basketball court next to doors


Question: Sentence: 'a child sits on a chair next to a bear'. Reverse all words of length '5' in the given sentence.

Answer:
a dlihc sits on a riahc next to a bear