what are the differences between array-based and linked-based stack in terms of memory space, code maintenance, speed of pushing and popping items to the stack, and real-wor