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: 'two kids playing soccer with a ball while a referee watches closely'. Reverse all words of length '4' in the given sentence.
Example Output: two sdik playing soccer htiw a llab while a referee watches closely

Example Input: Sentence: 'many cows on a field of grass with trees in the background'. Reverse all words of length '1' in the given sentence.
Example Output: many cows on a field of grass with trees in the background

Example Input: Sentence: 'the statue of the elephant is next to the bikes in the city'. Reverse all words of length '4' in the given sentence.
Example Output:
the statue of the elephant is txen to the bikes in the ytic