Solution for reverse a sentence.