Microsoft interview question

Principles of OOP, Linked list problem