Someone Pls help me debug this DSA week 2 MATCHED BRACKETS
please help me find my mistake unable to find. Thanks in advance.

Consider the test input:

1 1 1 2 1 2 2 2

Thanks, buddy Actually I am new to competitive .
Can you help me with this as well CodeChef: Practical coding for everyone
what should be the approach to deal with an expression like (D/E^F) where proper brackets are not present ?

Also help me with this–> I have almost finished Beginners section and I am comfortable with them. Now I want to know whether I should go for the same order(easy section now). Or there is some other better platform to practice. In beginners, I think I was not learning any new DS or Algo just practicing maths problems. please guide !!!