Balanced Parenthisi Problem

https://ide.geeksforgeeks.org/BSml05KsDz------I know my code is not generating the correct output , so please tell in where is the error in my code

you asked this question under balanced parenthesis problem, but the solution seems to be of different problem. please post the complete problem statement here.
Thanks

this is the balanced parenthesis problem not any other problem and soultion is of balanced parenthesis problem not of any other problem

can you please describe a little bit about your approach here. describe your algorithm.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.