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

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

PROBLEM: Sentence: 'a couple of trains are sitting on some tracks'. Reverse all words of length '2' in the given sentence.

SOLUTION: a couple fo trains are sitting no some tracks

PROBLEM: Sentence: 'a small orange cat is asleep with a marker on its head'. Reverse all words of length '1' in the given sentence.

SOLUTION:
a small orange cat is asleep with a marker on its head