Cisco interview question

The first question was OOP. The second question involved implementing a data structure.