solved reverse words Ruby problem