Arista Networks interview question

c++object classes one array coding ques