Generate Parentheses - Medium Python Stack Interview Problem | Unnested