Pergunta de entrevista da empresa Microsoft

Given the pre-order and post-order print out of a binary tree, reconstruct it.