Adobe Interview Question

Balance Parentheses stack DSA question