Balancing Parenthesis Problem