Pergunta de entrevista da empresa TRIOLOGY

The question was based on trees and graphs.