C3 AI Interview Question

Graph problem which I have not well prepared.