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 person is on the court and playing tennis'. Reverse all words of length '3' in the given sentence.

SOLUTION: a person is on eht court dna playing tennis

PROBLEM: Sentence: 'a man is riding a skateboard at a skateboard park'. Reverse all words of length '1' in the given sentence.

SOLUTION: a man is riding a skateboard at a skateboard park

PROBLEM: Sentence: 'the large mirror has bright lighting behind it'. Reverse all words of length '8' in the given sentence.

SOLUTION:
the large mirror has bright gnithgil behind it