think-cell interview question

Implement a single function for a class.