Pergunta de entrevista da empresa Alloy

System design, Trees and graph questions