Problem:
Question- Write a function that reads a line and reverses the words in the line (not the characters) using a stack. For example, given the following input:
The quick brown fox jumps over the lazy dog.
You should get the following output:
dog lazy the over jumps fox brown quick The
i have the code for reversing charachters but i need to reverse word by word.
Please describe your code with explainnation.