Pregunta de entrevista de Accenture

Create a function that checks for balanced brackets.