Zeta Interview Question

longest valid parentheses LeetCode hard.