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.

Example Input: Sentence: 'a dog is sleeping on a boat in the water'. Reverse all words of length '2' in the given sentence.
Example Output: a dog si sleeping no a boat ni the water

Example Input: Sentence: 'a large bird stands on the ledge of a window'. Reverse all words of length '3' in the given sentence.
Example Output: a large bird stands on eht ledge of a window

Example Input: Sentence: 'a woman sitting on the ground with an animal in her hands'. Reverse all words of length '7' in the given sentence.
Example Output:
a woman gnittis on the ground with an animal in her hands