Initial solution for balancedParens.