Visa Inc. Interview Question

Valid Parantheses