WekaIO Interview Question

Check for balanced parentheses in Python