Pregunta de entrevista de DiDi Labs

a depth first search based coding question