Two Sigma interview question

write a string class in C++