Pregunta de entrevista de Google

question was from topic MultiSource BFS questions