Balanced Parenthesis Two testcases are not passing

why my code is failing for two testcases
Here is my code: https://ide.codingblocks.com/s/221097

@navin_japes,
Corrected Code here
Correction, for every closing bracket you have to match with corresponding opening bracket.

Oh, by mistake i opened a closing bracket

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.