MathWorks interview question

Implement a hash list in C++