算法基础-合法括号匹配