AKUNA CAPITAL interview question

2nd round - 3rd question: Implement the vector class in c++