My solution to the Reverse Words Code Jam problem.