Microsoft Interview Question

Check if a given array represents a postorder traversal of a binary search tree