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 kid with yellow t shirt is ready to through something up'. Reverse all words of length '3' in the given sentence.

SOLUTION: a dik with yellow t shirt is ready to through something up

PROBLEM: Sentence: 'an old photo of many people with horses'. Reverse all words of length '3' in the given sentence.

SOLUTION:
an dlo photo of many people with horses