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.

Sentence: 'a child is smiling for the camera while outside'. Reverse all words of length '1' in the given sentence.
a child is smiling for the camera while outside

Sentence: 'a man in a suit has a phone up to his face'. Reverse all words of length '1' in the given sentence.
a man in a suit has a phone up to his face

Sentence: 'a skateboarder in mid air during a trick'. Reverse all words of length '6' in the given sentence.

a skateboarder in mid air gnirud a trick