think-cell interview question

Implement a small (albeit complex) operation on a templated data structure