Siemens Interview Question

Q: Implement a linked list Q: why do we need private vs public vs protected