Pregunta de entrevista de Infosys

they askerd an hard level graph problem