Amazon interview question

Coding was about graphs(leet code hard), and logical design