C3 AI Interview Question

Graph question by using Adjacency List