Jane Street Interview Question

Make a trade flow algorithm