algo4: dfs: generate_parentheses: Iterative backtracking method