Q1: https://leetcode.com/discuss/interview-question/406135/ibm-oa-2019-aladdin-and-his-carpet-backend
Q2: https://leetcode.com/problems/construct-string-from-binary-tree/, with a step to construct the tree from [(fromNode, toNode) ...] and error checking/handling along the way