Morgan Stanley Interview Question

how to increase the size of an array dynamically