exercise 2, Parentheses Balancing