Reverse the order of words in a sentence in place.
Represent the sentence as a mutable list of characters. Modify and return the same list, preserving the single spaces between words. The input contains lowercase words separated by exactly one space.
def reverse_words_in_place(chars):