Accenture interview question

implement vector with class in cpp