Xperi interview question

write a dynamic array container class