Goal: Implement a bag using a resizable array where duplicates are allowed.
BagArray class with internal arrayinsert(item) โ add item to arraytraverse() โ return shallow copy of internal arrayGoal: Implement a bag using a singly linked list.
BagLinkedList class with internal Node structureinsert(item) โ insert at headtraverse() โ collect values into an array