Pregunta de entrevista de Google

I was asked graph algorithms. Leetcode hard questions