Balanced parenthesis wrong output

two testcases are failing pls help.
codelink-https://ide.codingblocks.com/s/111493

@Ajaypandey hey ajay you are forget to code for this {,[ cases

bhaiya how do i rectify it ?? i’m stuck can u pls modify my code ??

@Ajaypandey hey Ajay do it yourself. The same logic will be used in both cases.

hi bhaiya , i changed my code and it is working fine in ide now but still two cases are not being passed .
code link-https://ide.codingblocks.com/s/111940

@Ajaypandey {{{})) your code is giving yes but it should be no.
your code is also not working for the cases like
([}{])
your code is giving yes but it should be no

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.