Accenture Interview Question

implement vector with class in cpp