Qualtrics interview question

Create a program to determine if the parentheses are closed properly.