solution of reverse words