Capital One interview question

Find if given string has balanced parenthesis.