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 man and a dog in the water with a surfboard'. Reverse all words of length '2' in the given sentence.
Example Output: a man and a dog ni the water with a surfboard

Example Input: Sentence: 'a cat has is sticking its head in the toilet'. Reverse all words of length '8' in the given sentence.
Example Output: a cat has is gnikcits its head in the toilet

Example Input: Sentence: 'a close up of a hotdog in a paper box'. Reverse all words of length '5' in the given sentence.
Example Output:
a esolc up of a hotdog in a repap box