Amazon interview question

questions were based on trees, graph, dsa etc