@ I don't know why my solution gives memory limit exceede. I have implemented opt

@ I don’t know why my solution gives memory limit exceede. I have implemented optimized solution using two stacks. What does this line mean “If you are using your own declared global variables, make sure to clear them out in the constructor.”?

Click here to start solving coding interview questions