January interview question

Implement a method of a data structure