CarGurus interview question

One question on constructing custom ArrayList