Bloomberg Interview Question

Q1. Graph Q2. Construct Tree from preorder and postorder