Wrong output please check
Your code is giving answer duplicate for string ((a+(b))+(c+d)). It should be not duplicate
Put all tthe characters in stack except ) if ) comes and stack top is ( then ans is yes otherwise no
Your code is giving answer duplicate for string ((a+(b))+(c+d)). It should be not duplicate
Put all tthe characters in stack except ) if ) comes and stack top is ( then ans is yes otherwise no