Scribd Inc. Interview Question

1. Write Valid Parentheses check code.