Becht interview question

create a graph structure in OOP