Arista Networks Interview Question

c++object classes one array coding ques