Amazon interview question

An easy implementation problem and a classic articulation points in a graph problem