Solution to reverse_sentence