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

Ex Output:
a small white god with a tah on sih rear dne


Ex Input:
Sentence: 'white scooter sitting behind a glass display in a building'. Reverse all words of length '1' in the given sentence.

Ex Output:
white scooter sitting behind a glass display in a building


Ex Input:
Sentence: 'a man is walking out of a pizza restaurant with his pizza'. Reverse all words of length '2' in the given sentence.

Ex Output:

a man si walking out fo a pizza restaurant with his pizza