Amazon interview question

Memory usage in Arrays and linked list