Parentheses Balancing by recursion