https://practice.geeksforgeeks.org/problems/preorder-to-postorder/0