Verint Interview Question

Non balanced parenthesis (solve with a stack)