Snap interview question

Reverse Words in a String