Travelfusion interview question

how an arraylist grows dynamically