Optiver Interview Question

Coding up a short software solution on a whiteboard.