TRIOLOGY Interview Question

The question was based on trees and graphs.