Recover a Tree From Preorder Traversal

Recover a Tree From Preorder Traversal - Coding Problem | K5kC