Pregunta de entrevista de Drivetrain

Leetcode Medium Graphs BFS question