Print Postorder traversal from given Inorder and Preorder traversals
Given two arrays represent Inorder and Preorder traversals of a binary tree, the task is to find the Postorder traversal. Example: Input: in[] = [4, 2, 5, 1, 3, 6] pre[] = [1, 2, 4, 5, 3, 6]Output: 4 5 2 6 3 1Explanation: Traversals in the above example represents following tree: A naive method is t