Question d’entretien chez Capital One

Find if given string has balanced parenthesis.