TASK DEFINITION: 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.
PROBLEM: Sentence: 'a women who is playing tennis on a tennis court'. Reverse all words of length '7' in the given sentence.

SOLUTION: a women who is gniyalp tennis on a tennis court

PROBLEM: Sentence: 'a photo of a glass of wine an apple and a banana'. Reverse all words of length '2' in the given sentence.

SOLUTION: a photo fo a glass fo wine na apple and a banana

PROBLEM: Sentence: 'a pitch being thrown in the middle of a baseball game'. Reverse all words of length '6' in the given sentence.

SOLUTION:
a pitch being nworht in the elddim of a baseball game