DRW interview question

Implement a dynamic array (std::vector).