finish binary-tree-preorder-traversal