Fanatics Interview Question

BFS, min cost graph, SQL