Arista Networks interview question

design a generic stack using C