2764: Is Array a Preorder of Some ‌Binary Tree

Problem Statement