Jane Street Interview Question

Just standard Leetcode OOP/DSA question