Wrong Answer in Test case 3(balanced Parenthesis)

Hello @S19LPPP0159,

Your code is not working for the test cases like:
{(})
This is not balanced, because the order in which the different kind of parenthesis are present in the input.

Hint:
You have to modify the logic you are applying when a closing parenthesis occurs.

Hope, this would help.
Give a like, if you are satisfied.