C3 AI interview question

LeetCode Medium/Hard (Graphs, APIs, Array)