Wrong output please check

Your code is giving answer duplicate for string ((a+(b))+(c+d)). It should be not duplicate

@Ankit003 That’s y I told its giving wrong output,please tell how to rectify it

@Ankit003 plz reply its more than 5 hours :frowning_face:

Put all tthe characters in stack except ) if ) comes and stack top is ( then ans is yes otherwise no