update format of Binary Tree Preorder Traversal