Shutterfly Interview Question

construction of binary tree