Morgan Stanley interview question

how to increase the size of an array dynamically