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: 'ladies and mans rest rooms in a public place'. Reverse all words of length '2' in the given sentence.

Ex Output:
ladies and mans rest rooms ni a public place


Ex Input:
Sentence: 'someone is sitting on a elephant and messing with the seat'. Reverse all words of length '7' in the given sentence.

Ex Output:
enoemos is gnittis on a elephant and gnissem with the seat


Ex Input:
Sentence: 'a man wearing a purple bow tie next to a tall building'. Reverse all words of length '3' in the given sentence.

Ex Output:

a nam wearing a purple wob eit next to a tall building