Visa Inc. Interview Question

check for balanced parentheses in a string question