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 person is on the court and playing tennis'. Reverse all words of length '3' in the given sentence.

Ex Output:
a person is on eht court dna playing tennis


Ex Input:
Sentence: 'a small bird sitting on the rim of a fountain'. Reverse all words of length '7' in the given sentence.

Ex Output:
a small bird gnittis on the rim of a fountain


Ex Input:
Sentence: 'a horse looking out of a stable window with a curious look'. Reverse all words of length '5' in the given sentence.

Ex Output:

a esroh looking out of a stable window with a curious look