initial proper segment contd.
It captures mismatched parenthesis
)(()
this example satisfies property T2 : equal number of ('s and )'s