Pergunta de entrevista da empresa Twilio

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