Optiver Interview Question

Create functions that simulate communicating with exchanges and avoids short-selling.