Jane Street Interview Question

Inorder tree traversal. Given a tree, return a new tree with the same structure but all values replaced with Unit. Given the inorder tree traversal, and tree structure with Units, reconstruct the tree.