Capital One Interview Question

Find if given string has balanced parenthesis.