Goal: Build a dynamic array that can grow in size and support basic operations.
DynamicArray
class with initial capacity and resizing logicinsert(value)
β add to the end; resize if fullfind(index)
β return value at indexdeleteAt(index)
β remove at index, shift elements leftdelete(value)
β remove first occurrence, shift elements lefttraverse()
β return or print all elements in orderGoal: Implement a dynamic array that maintains elements in sorted order after every insert.