Actually i written my logic as that case should fail because the logic used in accepted solutions (including mine) only performs two full iterations of balancing parentheses. For the given input, ...