Domanda di colloquio di Okta

given a string of alphanumeric characters and parentheses, return a string without unbalanced parentheses