Amazon interview question

3 Algorithms on Graphs and System Design