Design a graph-based system | Hello Interview