MathWorks interview question

Difference between arraylist and linkedlist