Find the greatest elernent using stacks

here is my code-https://ide.codingblocks.com/s/327338
im failing only test case can u please check it

Hey Jatin,
As i have debugged your code according to problem statement given. I have figured out that you have not considered a side cases.
I’ll help you
try to run - 10 4 5 9
hope you will find where are you wrong :smile:

mam can u please make the change in my code?

Sorry Jatin i am not supposed to do that, at least give it a try. Rest i am here to help !