Add code for reversing the words in a string.
Add python code for generating permutations of a string.