Check if given Preorder, Inorder and Postorder traversals are of same tree
Given the Preorder, Inorder, and Postorder traversals of some trees, the task is to check if they all belong to the same tree. Examples: Input: inOrder[] = [4, 2, 5, 1, 3] preOrder[] = [1, 2, 4, 5, 3] postOrder = [4, 5, 2, 3, 1] Output: TrueExplanation: All of the above three traversals are of the s