Create binary tree preorder travesal