Optiver Interview Question

Coding up trade analyzer from an order book