Jane Street Interview Question

Coding problem on the class methods implementations with follow-up tasks