construct-binary-tree-from-preorder-and-inorder-traversal

It’s much better to use iterator then use subscript