Chapter 2 Q1 and linked list library