s
순회function maxDepth(s: string): number {
let curDepth = 0
let maxDepth = 0
for(const char of s) {
if(char === '(') {
curDepth++
maxDepth = Math.max(maxDepth, curDepth)
} else if(char === ')') {
curDepth--
}
}
return maxDepth
};