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 close up of the front of a train on train tracks'. Reverse all words of length '3' in the given sentence.

Ex Output:
a close up of eht front of a train on train tracks


Ex Input:
Sentence: 'a man assisting a person on a horse on a race track'. Reverse all words of length '3' in the given sentence.

Ex Output:
a nam assisting a person on a horse on a race track


Ex Input:
Sentence: 'cat standing next to a dog laying on the bed'. Reverse all words of length '8' in the given sentence.

Ex Output:

cat gnidnats next to a dog laying on the bed