SLB interview question

Leet code Medium questions on Graphs