Meta Interview Question

store binary tree into a list, restore the the tree based on the list you generated from