Pregunta de entrevista de D. E. Shaw India

1 graph based coding question of medium level