Jane Street Interview Question

Design a data structure and algorithms for a toy game