Amazon Interview Question

reconstruct a binary tree