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 cat with a santa hat standing on a rug'. Reverse all words of length '8' in the given sentence.

SOLUTION: a cat with a santa hat gnidnats on a rug

PROBLEM: Sentence: 'a person holding a yummy looking hot dog'. Reverse all words of length '7' in the given sentence.

SOLUTION: a person gnidloh a yummy gnikool hot dog

PROBLEM: Sentence: 'fire hydrant in nontraditional paint whitish yellow paint with black polka dots in front of old style firehouse with usa flag'. Reverse all words of length '3' in the given sentence.

SOLUTION:
fire hydrant in nontraditional paint whitish yellow paint with black polka dots in front of dlo style firehouse with asu flag