Following the comments in career cup, add a much simpler and more efficient solution to reconstruct tenary tree from its preorder. O(n) time.