Pregunta de entrevista de Tiger Analytics

graph based coding question that needs to be done in python language