Balanced Parenthesis

This is my code and it is working fine in online IDE but failing in test case. Kindly rectify the my code and tell me where am i wrong

In the question it is mentioned “A string of ‘(’ , ‘)’ , ‘{’ , ‘}’ and ‘[’ , ‘]’ .”
You have only considered ‘(’ and ‘)’ in your code.

I tried doing it but again test cases are failing

Share the link of your updated code.

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.