5. reverse words in a string inlace