Optiver interview question

They asked me a medium level leetcode type question that was based on object oriented programming