Amazon Interview Question

trees and graphs from data structures