Pregunta de entrevista de Microchip Technology

The interviewer asked me to implement a graph in C++.