is Array a Preorder of Some ‌Binary Tree(LeetCode 2764):

Problem