Pregunta de entrevista de AMD

write code for different types of implementation of the graph.