Jump Trading interview question

implement a C++ vector with dynamic size allocation