Jane Street Interview Question

standard programming interview - create some code to solve a simple problem