think-cell interview question

Building a data structure using c++.