getting wa in BRCKTS problem

I have used 1 for ‘(’ and -2 for ‘)’ and done arithematic calculations accordingly