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 dog wearing a wooden tie sitting in its masters lap'. Reverse all words of length '1' in the given sentence.

SOLUTION: a dog wearing a wooden tie sitting in its masters lap

PROBLEM: Sentence: 'a man riding skis down a snow covered slope'. Reverse all words of length '5' in the given sentence.

SOLUTION: a man riding skis down a snow covered epols

PROBLEM: Sentence: 'this is an image of a cake with a bear surfing'. Reverse all words of length '4' in the given sentence.

SOLUTION:
siht is an image of a ekac htiw a raeb surfing