Parenthesis Matching Problem