MathWorks Interview Question

Implement a C++ class along with unit tests - take-home.