Check if the given array can represent Level Order Traversal of Binary Search Tree
Given an array of size n. The task is to check whether the given array can represent the level order traversal of a Binary Search Tree or not. Examples: Input: arr[] = {7, 4, 12, 3, 6, 8, 1, 5, 10}Output: TrueExplanation: For the given arr[] the Binary Search Tree is: Input: arr[] = {11, 6, 13, 5, 1