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 baseball players with long hair and beards are posing with a smile'. Reverse all words of length '1' in the given sentence.
Example Output: two baseball players with long hair and beards are posing with a smile

Example Input: Sentence: 'a bird looks around as it sits on a wire'. Reverse all words of length '4' in the given sentence.
Example Output: a drib looks around as it stis on a eriw

Example Input: Sentence: 'two toilets are sitting in the street in a residential area'. Reverse all words of length '2' in the given sentence.
Example Output:
two toilets are sitting ni the street ni a residential area