Question not understood

I didn’t get the question. Please explain it in more descriptive way, explain with some other test cases if possible.

@Syed-Siddiqui-2497215583854102 hi bro,
in this qstn you are given expression you have to tell whether that bracket contains unnecessary bracket or means redundant bracket or not take egs:
((a+b)+((c+d)))
The subexpression “c+d” is surrounded by two
pairs of brackets.
hence this is redundant
(((a+(b))+c+d))
The whole expression is surrounded by two
pairs of brackets.
Hence this is redundant
((a+b)+(c+d))
No subsexpression is surrounded by duplicate
brackets.
hence this is non redundant
Hope you get the qstn now
Happy coding :slight_smile:

Yeah! I got it now. Along with this if any expression contains extra opening or closing brackets, is that supposed to be duplicate?