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: 'an old traditional pirate ship in modern city'. Reverse all words of length '3' in the given sentence.
Example Output: an dlo traditional pirate ship in modern city

Example Input: Sentence: 'a woman is sitting at a small table'. Reverse all words of length '5' in the given sentence.
Example Output:
a namow is sitting at a llams elbat