Check if postordered array forms a binary search tree

Check if postordered array forms a binary search tree - Coding Problem | K5kC