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.

Ex Input:
Sentence: 'a beach chair and sandals in the sand'. Reverse all words of length '2' in the given sentence.

Ex Output:
a beach chair and sandals ni the sand


Ex Input:
Sentence: 'a hotdog with cheese with a side of chili fries'. Reverse all words of length '4' in the given sentence.

Ex Output:
a hotdog htiw cheese htiw a edis of chili fries


Ex Input:
Sentence: 'a baseball player sliding to a base and another trying to catch a ball'. Reverse all words of length '8' in the given sentence.

Ex Output:

a llabesab player sliding to a base and another trying to catch a ball