Redundant parentheses

giving wrong answer , what is wrong in it

mean of redundant in this qn is:
the number of characters between a
closing and opening parenthesis
if this count is less than or equal to 1
then the brackets are redundant else not

hope this will help u
pls rate my work so that i can improve myself

can you please provide me any refrence code for it, so i can go through it

you r doing correct
just count no of operands/operators between ( and ) bracket and if it is <= 1 return redundandant brackets.

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.