Visa Inc. interview question

check for balanced parentheses in a string question