Getting WA for Compilers and parsers problem

My solution to this is this

Both are question link

1 Like

Where is the link for your solution both are question links.

Did this really need another thread?


Can someone help me with this? I can’t figure out what’s going wrong with my code.