ConnectWise interview question

In coding round questions were about trees and graphs