Arista Networks interview question

Design an iterator class with pointers to an array.