USYTech interview question

Linked list vs array