Some Test cases are not accepted Please Help Balanced Paranthesis using stack

https://hack.codingblocks.com/app/contests/1786/709/problem

Hey @yashratnani6 you haven’t noticed the input format as it is
Input Format
A string of ‘(’ , ‘)’ , ‘{’ , ‘}’ and ‘[’ , ‘]’ .

Take this code for reference