A stack is implemented using a dynamically allocated array. What is the strategy for handling a filled array? 1) Resizing the array to accommodate more elements 2) Throwing an error 3) Overwriting the existing elements 4) Deleting the array and creating a new one