think-cell interview question

To implement one method of special data structure