Refactor "binary tree level order traversal" with dfs and backtracking.