Pregunta de entrevista de Google

Asked coding questions about graphs and trees and complexity