Pregunta de entrevista de Google

Medium difficulty graph/data structure questions.