Question d’entretien chez Bonsai AI

Write a function to determine if brackets or parenthesis are balanced.