it is giving wrong answer but runs well on sample test case.
Pls check
link to solution -
Prateek sir and coding
@avinashmallik2017 Please print No Code in case the stack is empty.
if (!s.empty())
{
cout << s.top() << endl;
s.pop();
}
else cout<<"No Code"<<endl;