4. Please compare a linked list and an array in terms of time and space. (10%)