Leetcode 2764. Is Array a Preorder of Some ‌Binary Tree | Hello Interview