Question was to validate brackets in string, with 3 types of brackets.
Anonymous
Answered wrong by counting opened, and closed once. Then adjusted code to push and pull last element to array(stack) linear algorithm complexity.
Check out your Company Bowl for anonymous work chats.