Arista Networks Interview Question

(second interview) Design and implement a homogeneous stack in C/C++.