Can't figure out what is wrong with this

my code passes 3 of the 4 test cases and i tried to find out what is wrong but failed.
Please help.

Input Format:
A string of ‘(’ , ‘)’ , ‘{’ , ‘}’ and ‘[’ , ‘]’ .
You are just considering ‘(’ and ‘)’ . Try with considering all these cases and then check your code.

Thankyou Bhaiiya :slight_smile: :slight_smile: