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 toilet and a roll of toilet paper'. Reverse all words of length '2' in the given sentence.

SOLUTION: a toilet and a roll fo toilet paper

PROBLEM: Sentence: 'a pizza that has jalapenos on one side and olives on the other'. Reverse all words of length '3' in the given sentence.

SOLUTION: a pizza that sah jalapenos on eno side dna olives on eht other

PROBLEM: Sentence: 'black and white dog with flying disc lying on grass'. Reverse all words of length '6' in the given sentence.

SOLUTION:
black and white dog with gniylf disc lying on grass