Domanda di colloquio di Twilio

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