Morgan Stanley interview question

Implement a dynamic array (vector in c++) with code.