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 line of buses waiting to take passengers where they need to go'. Reverse all words of length '2' in the given sentence.
Example Output: a line fo buses waiting ot take passengers where they need ot og

Example Input: Sentence: 'a vintage photo of a man riding an old motorcycle'. Reverse all words of length '7' in the given sentence.
Example Output: a egatniv photo of a man riding an old motorcycle

Example Input: Sentence: 'stop sign at an intersection with a fence flanked by weeds'. Reverse all words of length '1' in the given sentence.
Example Output:
stop sign at an intersection with a fence flanked by weeds