Jane Street interview question

Make a trade flow algorithm