Adding problem B (Reverse Words)