Solution for 3.1: Testing if a sequence of open/close parens are balanced.