Tree: Depth-First Search - Construct Tree from Preorder and Inorder
Consider the following buggy code snippet for building a binary tree from preorder and inorder traversals. Which line contains the subtle bug that can cause incorrect tree construction or infinite loops?
