Question d’entretien chez Accenture

Create a function that checks for balanced brackets.