Reverse whole words from last to first
It takes input.txt and gives output.txt
I added the tests I did in C