Airties interview question

For a given string, check if the parentheses in the string match or not.