Twilio Interview Question

An DFS question and a binary tree find the common nodes.