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 small white dog with a hat on his rear end'. Reverse all words of length '3' in the given sentence.

SOLUTION: a small white god with a tah on sih rear dne

PROBLEM: Sentence: 'a woman checks upon a baby in a bed'. Reverse all words of length '1' in the given sentence.

SOLUTION: a woman checks upon a baby in a bed

PROBLEM: Sentence: 'a little boy in a costume standing in the grass'. Reverse all words of length '3' in the given sentence.

SOLUTION:
a little yob in a costume standing in eht grass