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 child is smiling for the camera while outside'. Reverse all words of length '1' in the given sentence.
Example Output: a child is smiling for the camera while outside

Example Input: Sentence: 'a can of pepsi and cellphone on the table'. Reverse all words of length '2' in the given sentence.
Example Output: a can fo pepsi and cellphone no the table

Example Input: Sentence: 'a flock of birds standing on top of a body of water'. Reverse all words of length '4' in the given sentence.
Example Output:
a flock of birds standing on top of a ydob of water