One of the test case is not working out

hello @Varun_a19

here u have only handled for ( ) these paranthesis but there can be some other type of paranthesis as well.

check input format
image