Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversals of a tree with unique values, construct the tree and return its level-order array. The array lists nodes level by level from left to right, uses `null` for a missing child, and omits trailing `null` entries. Since all values are unique and the traversals describe the same tree, the reconstruction is unique.