Amazon interview question

Data structures / Graph Based Problems