Amazon Interview Question

OA questions were on trees and graphs