Jane Street interview question

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