if $char is an open symbol, push it along with position. else if $char is a close symbol, pop the stack and verify that it's the matching type (error if not). popped position through current position is ballanced range. Save that on answer list.