Amazon Interview Question

questions were based on trees, graph, dsa etc