Question d’entretien chez Allscripts

Write a function that returns true if the string has balanced parentheses and false if it does not.