Tesla Interview Question

Leetcode question for round 3: Construct binary tree from preorder and inorder traversal