Domanda di colloquio di ShipBob

coding problem on balance parenthesis along with a variation.