Braze Interview Question

Find valid parentheses in string