think-cell interview question

Implement a member function according to a specification.