started solution for reverse_words problem