Reverse stack using recursion

sample testcase is passing but i am getting wrong output on submission.

Hey @vaishnavtannu
Your code runs completely fine
Just a small edit to be done while printing the answer:-
instead of the line- cout << s.top() << " ";
write cout << s.top() << endl;