Microchip Technology Interview Question

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